<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" 	prefix="s"%>
<%@ include file="/jsp/common/common_head.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
<title>示界港管理平台</title>
<%@ include file="/jsp/common/common_script.jsp"%>
<style type="text/css">
</style>
<script type="text/javascript">
 var g_userId = '<%=session.getAttribute("userId")%>';
</script>
<style type="text/css">
	span{
		font-size: 13px;
	}
	.btnCla {
    background-color: 	#104E8B;
    border: none;
    color: white;
    padding: 9px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 1px 2px;
    cursor: pointer;
    border-radius: 12px;
	}
	.button2:hover {
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
	}
	
	.commenBtn {
    background-color: 	green;
    border: none;
    color: white;
    padding: 9px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 1px 2px;
    cursor: pointer;
    border-radius: 12px;
	}
</style>
</head>
<body>

<h3 style="color:blue">【一键生成】</h3>
<div id="table1">
	<table class="queryTable" >
		<tr>
			<td class="queryTitle" width="220px">
			<span style="color:red;font-family:'Arial';">清除 [APP/官网首页] 缓存</span></td>
			<td class="queryContent" style="width: 140px;" align="center">
				<a id="btn1" href="javascript:void(0)" class="easyui-linkbutton" 
				data-options="" onclick="clearCache()">清除缓存</a>
			</td>
		</tr>
	</table>
</div>

<div id="table2">
	<table class="queryTable" >
		<tr>
			<td class="queryTitle" width="220px" align="left">
			<span style="color:red;font-family:'Arial';">建立一键生成 [Redis/检索用] 缓存</span></td>
			<td class="queryContent" style="width: 140px;" align="center">
				<a id="btn2" href="javascript:void(0)" class="easyui-linkbutton" 
				data-options="" onclick="buildCache()">建立缓存</a>
			</td>
			<td width="120px" align="center">
			<a href="#" title="当前建立缓存需要30分钟,30分钟后点击该按钮确定建立完成"
			 class="easyui-tooltip">＊注意事项</a></td>
		</tr>
	</table>
</div>
<br>
<hr/>
<h3>【一键生成_缓存管理】</h3>
<s:hidden id="sec" value="aad9b3a1558afb6277f211d92c1c311f"></s:hidden>
<div id="table6">
	<table class="queryTable" >
		<tr>
			<td class="queryTitle" width="220px" align="left">
			<span style="color:red;font-family:'Arial';">更新[APP/WEB]数据缓存</span></td>
			<td class="queryContent" style="width: 140px;" align="center">
				<input type="button" class="btnCla button2" id="btn6" value="更新缓存" /> 
			</td>
		</tr>
	</table>
</div>
<div id="table7">
	<table class="queryTable" >
		<tr>
			<td class="queryTitle" width="220px" align="left">
			<span style="color:red;font-family:'Arial';">清除接口缓存</span></td>
			<td class="queryContent" style="width: 140px;" align="center">
				<input type="button" class="btnCla button2" id="btn4" value="清除缓存" /> 
			</td>
			<td width="120px" align="center">
			<a href="#" title="更新缓存完毕,点击清除缓存按钮" class="easyui-tooltip">*注意事项</a></td>
		</tr>
	</table>
</div>

<div id="table8" style="display: none;">
	<hr/>
	<table class="queryTable" >
		<tr>
			<td class="queryTitle" width="220px" align="left">
			<span style="color:red;font-family:'Arial';">更新宕机DB缓存</span></td>
			<td class="queryContent" style="width: 140px;" align="center">
				<input type="button" class="btnCla button2" id="btn5" value="更新宕机" /> 
			</td>
		</tr>
		<tr>
			<td class="queryTitle" width="220px" align="left">
			<span style="color:red;font-family:'Arial';">切换缓存DB</span></td>
			<td class="queryContent" style="width: 140px;" align="center">
				<input type="button" class="btnCla button2" id="btn7" value="切换缓存" /> 
			</td>
		</tr>
		<tr>
			<td class="queryTitle" width="220px" align="left">
			<span style="color:red;font-family:'Arial';">同步缓存</span></td>
			<td class="queryContent" style="width: 140px;" align="center">
				<input type="button" class="btnCla button2" id="btn8" value="同步缓存" /> 
			</td>
		</tr>
		<tr>
			<td class="queryTitle" width="220px" align="left">
			<span style="color:red;font-family:'Arial';">建立推荐系统缓存</span></td>
			<td class="queryContent" style="width: 140px;" align="center">
				<input type="button"  class="commenBtn button2" id="commenCacheBtn" value="建立缓存" /> 
			</td>
		</tr>
	</table>
</div>


<script type="text/javascript" src="${ctx}/js/tg/uploadcom.js"></script>
<script type="text/javascript" src="${ctx}/js/tg/ajaxupload.js"></script>
<script type="text/javascript" src="${ctx}/js/itb/cacheMgr.js"></script>
<script type="text/javascript" src="${ctx}/js/encrypt/encrypted-min.js"></script>
</body>
</html>
